import { Schema, model } from "mongoose";


// 定义一个用户类型
interface User {
    username: string,
    password: string
}

const userSchema = new Schema<User>({
    username: { type: String, required: true, unique: true },
    password: { type: String, required: true }
})

export const ModelUser = model<User>('User', userSchema)